package com.ruoyi.user.sms.feign;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(contextId = "remoteAuthForSms", value = ServiceNameConstants.AUTH_SERVICE)
public interface RemoteAuthService {

    @PostMapping("/sms/token")
    R<Map<String, Object>> smsToken(@RequestBody Map<String, String> body);
}


